using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Emlyn.Website.Articles;
using Emlyn.Website.ArticlesPresentation;

public partial class AboutMe : EmlynPage
{
    const string C_AboutMeArticleCode = "AboutMeArticle";

    protected void Page_Load(object sender, EventArgs e)
    {
        ArticleQuery laq = new ArticleQuery();
        Article larticle = laq.GetArticleByArticleCode(C_AboutMeArticleCode);

        if (larticle != null)
        {
            PresentArticleDetail lpad = new PresentArticleDetail();
            lpad.aArticle = larticle;
            lpad.Editable = false;
            lpad.CssClass = "AboutMe";
            pnlMain.Controls.Add(lpad);
        }
        else
        {
            Label llbl = new Label();
            llbl.Text = "Article \"" + C_AboutMeArticleCode + "\" not found.";
            pnlMain.Controls.Add(llbl);
        }
    }
}
